package com.example.service.impl.rocketmq.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;
//
//@Component
//@RocketMQMessageListener(topic = "order_id",consumerGroup = "group_rocketmq")
public class RocketListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("消费成功："+s);
    }
}
